package biz.ezcom.s2sh.action.user;

import biz.ezcom.s2sh.pojo.User;
import biz.ezcom.s2sh.service.UserService;

import com.opensymphony.xwork2.ActionSupport;

public class SaveUserAction extends ActionSupport{
	private User user;
	private UserService userService;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	@Override
	public String execute() throws Exception {
		userService.saveUser(user);
		return SUCCESS;
	}
}
 